#pragma once

#include "../esperanzaLib/Communication.h"

// CPacketViewer

class CPacketViewer : public CRichEditCtrl
{
	DECLARE_DYNAMIC(CPacketViewer)

public:
	CPacketViewer();
	virtual ~CPacketViewer();

protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnContextMenu(CWnd* /*pWnd*/, CPoint /*point*/);
	afx_msg void OnPviewerEditCopy();

public:
	void CPacketViewer::SetPacket(PWINSOCKHOOKMSG pMessage);
private:
	VOID GetHexStr(PUCHAR lpData, DWORD uDataLength, CString &strText);
	VOID CPacketViewer::GetText(PUCHAR lpData, DWORD uDataLength, CString& strText);
private:
	PWINSOCKHOOKMSG m_pMsg;
public:
	afx_msg void OnEditCopytext();
};


